/*
 * UPException.java
 */

package exceptions;

/**
 * UPException is a custom exception class for the
 * Urban Parks program.
 * 
 * @author Sean Brown
 * @version 1.0
 */
@SuppressWarnings("serial")
public class UPException extends Exception {
	
	/**
	 * The error message for this exception. 
	 */
	private final String my_message;
	
	/**
	 * Default constructor for this exception.
	 */
	public UPException() {
		super();
		my_message = "unknown";
	}
	
	/**
	 * Overloaded constructor for passing a message
	 * concerning the origin of this exception.
	 * 
	 * @assumes the_message is not null.
	 * @param the_message The error for this exception.
	 */
	public UPException(String the_message) {
		super(the_message);
		my_message = the_message;
	}
}
